 /*********************************************
  * Copyright (c) 2009 ICBC.
  * All rights reserved.
  * Created on 2010-7-19 11:28:06
  * 
  * Contributors:
  *     ctp - initial implementation
  *********************************************/
 
 
 /**
 * 用户管理类.
 * 
 * <pre>
 *  用于用户调整菜单权限交易
 * </pre>
 * 
 * @author kfzx-yuli1
 * 
 */

package com.icbc.ctpdemo.user;

public class UserMenuBean {
	private String menuId;//菜单id
	private String menuLabel;//菜单名
	private String menuDeep;//菜单层级
	private String menuParentId;//菜单父节点
	private String menuOrder;
	private String menuType;//菜单类型
	private String menuState;//菜单状态
	private String menuPrivilege;//菜单权限
	private String menuSerialNo;//菜单序号
	private String menuUrl;//菜单连接
	private String menuLevel;//菜单层级，用于组合树表
	private String self;//菜单id，用于组合树表
	
	public String getSelf() {
		
		if("I".equals(menuType))
		{
			return menuId+menuParentId;
		}
		else 
		{
			return menuId;
		}
	}
	public void setSelf(String self) {
		this.self = self;
	}
	public String getMenuLevel() {
		return menuLevel;
	}
	public void setMenuLevel(String menuLevel) {
		this.menuLevel = menuLevel;
	}
	
	
	public String getMenuId() {
		return menuId;
	}
	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}
	public String getMenuLabel() {
		return menuLabel;
	}
	public void setMenuLabel(String menuLabel) {
		this.menuLabel = menuLabel;
	}
	public String getMenuDeep() {
		return menuDeep;
	}
	public void setMenuDeep(String menuDeep) {
		this.menuDeep = menuDeep;
	}
	public String getMenuParentId() {
		return menuParentId;
	}
	public void setMenuParentId(String menuParentId) {
		this.menuParentId = menuParentId;
	}
	public String getMenuOrder() {
		return menuOrder;
	}
	public void setMenuOrder(String menuOrder) {
		this.menuOrder = menuOrder;
	}
	public String getMenuType() {
		return menuType;
	}
	public void setMenuType(String menuType) {
		this.menuType = menuType;
	}
	public String getMenuUrl() {
		return menuUrl;
	}
	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}
	public String getMenuState() {
		return menuState;
	}
	public void setMenuState(String menuState) {
		this.menuState = menuState;
	}
	public String getMenuPrivilege() {
		return menuPrivilege;
	}
	public void setMenuPrivilege(String menuPrivilege) {
		this.menuPrivilege = menuPrivilege;
	}
	public String getMenuSerialNo() {
		return menuSerialNo;
	}
	public void setMenuSerialNo(String menuSerialNo) {
		this.menuSerialNo = menuSerialNo;
	}
	
	
	 public String toString() {
			StringBuilder sb = new StringBuilder();
			sb.append("menuId=");
			sb.append(menuId);
			sb.append(" menuLabel=");
			sb.append(menuLabel);
			sb.append(" menuDeep=");
			sb.append(menuDeep);
			sb.append(" menuParentId=");
			sb.append(menuParentId);
			sb.append(" menuOrder=");
			sb.append(menuOrder);
			sb.append(" menuType=");
			sb.append(menuType);
			sb.append(" menuState=");
			sb.append(menuState);
			sb.append(" menuPrivilege=");
			sb.append(menuPrivilege);
			sb.append(" menuSerialNo=");
			sb.append(menuSerialNo);
			sb.append(" menuUrl=");
			sb.append(menuUrl);
			sb.append(" menuLevel=");
			sb.append(menuLevel);
			sb.append(" self=");
			sb.append(self);
			return sb.toString();
	 }
}
